#define _CRT_SECURE_NO_WARNINGS 1

#include"Heap.h"

void Test1()
{
	int arr[] = { 1,9,10,12,24,98,21,1,3 };
	HP hp;
	HPInit(&hp);
	int sz = sizeof(arr) / sizeof(int);
	int i = 0; 
	for (i = 0; i < sz; i++)
	{
		HPPush(&hp, arr[i]);
	}

	for (i = 0; i < sz; i++)
	{
		printf("%d ", HPTop(&hp));
		HPPop(&hp);
	}

	HPDestroy(&hp);
}

int main()
{
	Test1();
	return 0;
}